import request from '@/utils/request'
import defaultSettings from '@/settings'
import { praseStrEmpty } from '@/utils/ruoyi'

//代收付业务拒绝通知报文录入
export const apiUrlConfigEntryQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/paymentRefuse/refusalCollectionPaymentEntry/search`,
}


export const apiUrlConfigEntryQuerySearchTable380 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/paymentRefuse/refusalCollectionPaymentEntry/searchTable380`,
}


export const apiUrlConfigEntryQuerySearchTable382 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/paymentRefuse/refusalCollectionPaymentEntry/searchTable382`,
}




// 代收付业务拒绝通知报文录入明细
export function refusalCollectionPaymentEntryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/paymentRefuse/refusalCollectionPaymentEntry/detail`,
    method: 'get',
    params:{id:data.id,pkgno:data.pkgno}

  })
}



// 代收付业务拒绝通知报文录入380提交
export function refusalCollectionPaymentEntrySave(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/paymentRefuse/refusalCollectionPaymentEntry/save`,
    method: 'post',
    data:data

  })
}

// 代收付业务拒绝通知报文录入382提交
export function refusalCollectionPaymentEntrySave382(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/paymentRefuse/refusalCollectionPaymentEntry/save382`,
    method: 'post',
    data:data

  })
}



//代收付业务拒绝通知查询
export const apiUrlConfigQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/paymentRefuse/refusalCollectionPaymentQuery/search`,
}



// 代收付业务拒绝通知查询明细
export function refusalCollectionPaymentQueryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/paymentRefuse/refusalCollectionPaymentQuery/detail`,
    method: 'get',
    params:{id:data.id}

  })
}
